﻿namespace HuaWei
{
    using DevExpress.XtraEditors;
    using HuaWei.CommClass;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    public class FrmKHDYYFK_BZGSKH : Form
    {
        private BindingSource bindingSource = null;
        private SimpleButton btnCancel;
        private SimpleButton btnOK;
        [CompilerGenerated]
        private BZGSKH bzgskh;
        private TextEdit edtQKEBL;
        private IContainer icontainer = null;
        private LabelControl labelControl1;
        private LabelControl labelControl2;
        private LabelControl labelControl3;
        private LabelControl labelControl4;
        private TextEdit textEdit;

        public FrmKHDYYFK_BZGSKH()
        {
            this.InitializeComponent();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            base.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            base.DialogResult = System.Windows.Forms.DialogResult.OK;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.icontainer != null))
            {
                this.icontainer.Dispose();
            }
            base.Dispose(disposing);
        }

        public decimal GetQKEBL()
        {
            return Convert.ToDecimal(this.edtQKEBL.EditValue);
        }

        public void IniForm(BindingSource source)
        {
            this.bindingSource = source;
            DataRow dataRow = DHelp.GetDataRow(this.bindingSource);
            this.gs = new BZGSKH(dataRow["KDYYFKGS"].ToString());
            this.textEdit.EditValue = this.gs.DYYFKZE;
            this.edtQKEBL.EditValue = this.gs.QKEBL;
        }

        private void InitializeComponent()
        {
            this.labelControl1 = new LabelControl();
            this.textEdit = new TextEdit();
            this.labelControl2 = new LabelControl();
            this.labelControl3 = new LabelControl();
            this.edtQKEBL = new TextEdit();
            this.labelControl4 = new LabelControl();
            this.btnOK = new SimpleButton();
            this.btnCancel = new SimpleButton();
            this.textEdit.Properties.BeginInit();
            this.edtQKEBL.Properties.BeginInit();
            base.SuspendLayout();
            this.labelControl1.Location = new Point(0x7c, 0x20);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new Size(0x54, 14);
            this.labelControl1.TabIndex = 0;
            this.labelControl1.Text = "动员预付款总额";
            this.textEdit.Location = new Point(0xd4, 0x1d);
            this.textEdit.Name = "edtDYYFKZE";
            this.textEdit.Size = new Size(100, 0x15);
            this.textEdit.TabIndex = 1;
            this.labelControl2.Location = new Point(0x13f, 0x20);
            this.labelControl2.Name = "labelControl2";
            this.labelControl2.Size = new Size(12, 14);
            this.labelControl2.TabIndex = 2;
            this.labelControl2.Text = "元";
            this.labelControl3.Location = new Point(0x13f, 0x3d);
            this.labelControl3.Name = "labelControl3";
            this.labelControl3.Size = new Size(12, 14);
            this.labelControl3.TabIndex = 5;
            this.labelControl3.Text = "%";
            this.edtQKEBL.Location = new Point(0xd4, 0x3a);
            this.edtQKEBL.Name = "edtQKEBL";
            this.edtQKEBL.Size = new Size(100, 0x15);
            this.edtQKEBL.TabIndex = 4;
            this.labelControl4.Location = new Point(0x24, 0x3d);
            this.labelControl4.Name = "labelControl4";
            this.labelControl4.Size = new Size(0xac, 14);
            this.labelControl4.TabIndex = 3;
            this.labelControl4.Text = "起扣额=(合同总价－暂定金额)\x00d7";
            this.btnOK.Location = new Point(0x52, 0x70);
            this.btnOK.Name = "btnOK";
            this.btnOK.Size = new Size(0x4b, 0x17);
            this.btnOK.TabIndex = 6;
            this.btnOK.Text = "确定";
            this.btnOK.Click += new EventHandler(this.btnOK_Click);
            this.btnCancel.Location = new Point(0xb6, 0x70);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new Size(0x4b, 0x17);
            this.btnCancel.TabIndex = 7;
            this.btnCancel.Text = "取消";
            this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.ClientSize = new Size(0x15c, 0x9d);
            base.Controls.Add(this.btnCancel);
            base.Controls.Add(this.btnOK);
            base.Controls.Add(this.labelControl3);
            base.Controls.Add(this.edtQKEBL);
            base.Controls.Add(this.labelControl4);
            base.Controls.Add(this.labelControl2);
            base.Controls.Add(this.textEdit);
            base.Controls.Add(this.labelControl1);
            base.Name = "FrmBZGSKH";
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text = "扣回动员预付款：标准公式扣回";
            this.textEdit.Properties.EndInit();
            this.edtQKEBL.Properties.EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        public decimal method()
        {
            return Convert.ToDecimal(this.textEdit.EditValue);
        }

        public BZGSKH gs
        {
            [CompilerGenerated]
            get
            {
                return this.bzgskh;
            }
            [CompilerGenerated]
            set
            {
                this.bzgskh = value;
            }
        }
    }
}

